using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;

namespace CKS.WindowsLiveAuthentication
{
    class ProfileListEventHandler : SPItemEventReceiver
    {
        public override void ItemUpdated(SPItemEventProperties properties)
        {
            string account = properties.ListItem["Title"].ToString();
            BlogUserProfile bup = BlogUserProfile.GetUser(account);

            if (bup != null)
            {
                bup.PushProfile();
            }
        }
    }
}
